<?php
/*  @var $this ControllerAbstract   */
?><!DOCTYPE html>
<html>
    <head>
        <title>Sisdof</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link href="imagens/new-logo.png" rel="shortcut icon" >
        <script type="text/javascript">
            var BASE_URL = "<?php echo BASE_URL; ?>";
        </script>
        <?php
        echo $this->renderLayoutScripts();
        ?>
    </head>
    <body>
        <div id="modal"></div>
        <div id="loading"></div>
        <div id="notific">
            <ul></ul>
        </div>
        <?php
        //carrega barra de cabeçalho do topo
        echo $this->renderView('layout/top');
        ?>


        <div id="mws-wrapper">
            <?php
            if (isset($_SESSION["sis_tipo"])) {
                echo $this->renderView('layout/menu');
            }

            if (isset($_SESSION["sis_id"])) {
                ?>

                <div id="mws-container" class="clearfix">
                    <div class="container" id="container">

                        <?php
                        echo $content;
                        ?>    
                    </div>
                    <div id="mws-footer"> SISDOF © 2013. Todos os direitos reservados. </div>
                </div>

                <?php
            } else {
                echo $content;
            }
            ?>

        </div>
    </body>
</html>